import { ActionFunctionArgs, redirect } from 'react-router-dom'

export const action = async ({ params }: ActionFunctionArgs) => {
	throw new Error('删除出错了')
	// await fetch(`/api/notes/${params.noteId}`, {
	// 	method: 'DELETE'
	// })
	// return redirect('/')
}
